package fun.werfamily.wf.order.core.domain.dto.req;

import fun.werfamily.wf.order.core.domain.dto.req.goods.GoodsLineDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * wf_order
 * @author 
 */
@Data
@ApiModel("确认订单请求实体")
public class OrderConfirmReqDTO implements Serializable {

    @ApiModelProperty("购买明细")
    @NotNull(message = "购买明细不能为空")
    private List<GoodsLineDTO> goodsList;

    @ApiModelProperty("收货地址id")
    @NotNull(message = "收货地址id不能为空")
    private Long addressId;

    @ApiModelProperty("下单来源：cart-购物车，buy-立即购买")
    @NotBlank(message = "下单来源不能为空")
    private String origin;

    @ApiModelProperty("订单备注")
    private String remark;
}